package top.sssd.auth.model.rolePermission.converter;

import java.time.LocalDateTime;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import top.sssd.auth.model.rolePermission.dto.RolePermissionDto;
import top.sssd.auth.model.rolePermission.entity.RolePermission;
import top.sssd.auth.model.rolePermission.request.RolePermissionSaveOrUpdateReq;
import top.sssd.auth.model.rolePermission.response.RolePermissionResp;


/**
 * @author sssd
 * @description 角色权限关联表 Converter转换类
 * @create ${time.now}
 * @version: 1.0.0-SNAPSHOT
 */
@Mapper
public interface RolePermissionConverter {

    RolePermissionConverter INSTANCE = Mappers.getMapper(RolePermissionConverter.class);

    RolePermissionResp entityToResp(RolePermission rolePermission);

    RolePermission saveOrUpdateRolePermissionReqToEntity(RolePermissionSaveOrUpdateReq rolePermissionSaveOrUpdateReq);

    RolePermission dtoToEntity(RolePermissionDto rolePermissionDto);

    RolePermissionDto entityToDto(RolePermission rolePermission);

}

